﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class CommentBUS
    {
        public static List<CommentDTO> getAll()
        {
            return CommentDAO.getAll();
        }
        public static List<CommentDTO> getCommentById(int id)
        {
            return CommentDAO.getCommentById(id);
        }
        public static List<CommentDTO> getCommentofComment(int commentId)
        {
            return CommentDAO.getCommentofComment(commentId);
        }
        public static List<CommentDTO> getCommentOfAccount(int taiKhoanID)
        {
            return CommentDAO.getCommentOfAccount(taiKhoanID);
        }
        public static List<CommentDTO> getCommentOfDiaDiem(int diaDiemId)
        {
            return CommentDAO.getCommentOfDiaDiem(diaDiemId);
        }
        public static bool insertComment(CommentDTO cm)
        {
            return CommentDAO.insertComment(cm);
        }
    }
}
